﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ManagementEffect;

namespace ServerYuGi
{
    public partial class STurnManager
    {
        private void Process_MainPhase2_END(object[] param)
        {
            super.ExEffectManager.IDPlayerCheck = IDPlayerTrongLuot;
            super.ExEffectManager.CheckPointNow = YCheckPoint.MF2_END;
            super.ExEffectManager.Init();
            super.RevMSGmanager.isPlayerKoTrongLuot = true;
            List<YCheckPoint> checkpoint = new List<YCheckPoint> { YCheckPoint.MF2_END };   
            super.Check_EffectExcute(checkpoint,super.ExEffectManager.IDPlayerCheck,"api_manager", super.api_manager);
            super.RevMSGmanager.Init();
        }
        private void Process_MainPhase2_BEGIN(object[] param)
        {
            super.ExEffectManager.IDPlayerCheck = IDPlayerTrongLuot;
            super.ExEffectManager.CheckPointNow = YCheckPoint.MF2_BEGIN;
            super.ExEffectManager.Init();
            super.RevMSGmanager.isPlayerKoTrongLuot = true;
            List<YCheckPoint> checkpoint = new List<YCheckPoint> { YCheckPoint.MF2_BEGIN };
            super.Check_EffectExcute(checkpoint,super.ExEffectManager.IDPlayerCheck,"api_manager", super.api_manager);
            super.RevMSGmanager.Init();
        }
    }
}
